#ifndef __QUE_H__
#define __QUE_H__
#include"head.h"
//队列上挂的节点
//描述符：看是谁发的
//need：发的什么
typedef struct node
{
    int new_fd;
    char need[60];
    struct node* next;
}Node_t,*pNode_t;
//头尾指针，队列已有尺寸
typedef struct
{
    pNode_t queHead,queTail;
    int queSize;
    pthread_mutex_t queMutex;
}Que_t,*pQue_t;

int que_init(pQue_t);
int que_push(pQue_t,pNode_t);
//要存到节点里，所以带*
int que_pop(pQue_t,pNode_t*);

#endif


